<template>
  <div>
    sync的子组件---{{ cc }}
    <button @click="fn">+1</button>
  </div>
</template>

<script>

export default {
  name: 'VueHrZi',
  props: {
    cc: {
      // required: true,
      type: Number,
      default: 0
    }
  },

  data() {
    return {
    }
  },

  methods: {
    fn() {
      this.$emit('updata:cc', this.cc + 1)
    }
  }
}
</script>

<style lang="scss" scoped>

</style>
